package com.itjeffrey.autocode.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itjeffrey.autocode.common.Result;
import com.itjeffrey.autocode.bo.req.DbLinkBO;
import com.itjeffrey.autocode.bo.resp.DataSourceVO;
import com.itjeffrey.autocode.bo.resp.DbLinkVo;
import com.itjeffrey.autocode.entity.CodeGenerateEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * @From: Jeffrey
 * @Date: 2020/11/11
 */
public interface CodeGenerateService extends IService<CodeGenerateEntity> {

    DbLinkVo dbLink(DbLinkBO dbLinkBo);

    List<Map<String, String>> codeView(DbLinkBO dbLinkBo);

    Result getcurConnCount();

    Result<DataSourceVO> upload(MultipartFile multipartFile);

    void oneKeyGenerate(DbLinkBO dbLinkBo);

    void dsFileModuleDownload(HttpServletRequest request, HttpServletResponse response);
}
